<% @page_title = "#{@admin.name} Login Archive" %>
<%= link_to("<< Back to Admins Menu", list_admin_index_path, :class => 'back-link') %>
<div class="Admin list">
  <h2><%=  @admin.name %> Logins</h2>

  <div><%= pluralize(@logins.size, 'login') %> logged out of <%= @admin.sign_in_count %> logins total </div>
  <table class="table table-striped" summary="Campaign list">
    <tr class="header">
      <th>Date</th>
      <th>IP</th>
    </tr>

    <% @logins.each do |login| %>

        <tr>
          <td><%= login.current_sign_in_at %></td>
          <td><%= login.current_sign_in_ip %></td>
        </tr>
    <% end %>
  </table>

</div>
